import request from '@/utils/request'

// 查询专家抽取记录列表
export function listProjectexpertextract(query) {
  return request({
    url: '/system/projectexpertextract/list',
    method: 'get',
    params: query
  })
}

export function listsProjectexpertextract(query) {
  return request({
    url: '/system/projectexpertextract/lists',
    method: 'get',
    params: query
  })
}

// 查询专家抽取记录详细
export function getProjectexpertextract(id) {
  return request({
    url: '/system/projectexpertextract/' + id,
    method: 'get'
  })
}

// 新增专家抽取记录
export function addProjectexpertextract(data) {
  return request({
    url: '/system/projectexpertextract',
    method: 'post',
    data: data
  })
}

// 修改专家抽取记录
export function updateProjectexpertextract(data) {
  return request({
    url: '/system/projectexpertextract',
    method: 'put',
    data: data
  })
}

// 删除专家抽取记录
export function delProjectexpertextract(id) {
  return request({
    url: '/system/projectexpertextract/' + id,
    method: 'delete'
  })
}

// 设置抽取记录状态
export function setProjectexpertextractstatus(id,status) {
  return request({
    url: '/system/projectexpertextract/setstatus/' + id+'/'+status,
    method: 'get'
  })
}

// 重置抽取
export function resetProjectexpertextract(expertSelectId) {
  return request({
    url: '/system/projectexpertextract/resetextract/' + expertSelectId,
    method: 'get'
  })
}

// 确认抽取
export function confirmExpertselectextract(expertSelectId) {
  return request({
    url: '/system/projectexpertextract/confirmextract/' + expertSelectId,
    method: 'get'
  })
}
